package com.iphanta.community.activity.voting.entity;

import com.influxdb.annotations.Column;
import com.influxdb.annotations.Measurement;
import lombok.Data;
import lombok.ToString;

import java.time.Instant;
/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 4/7/22 6:49 PM
 */
@Data
@ToString
@Measurement(name = "activity_vote_record")
public class Vote {

    @Column(name = "_time", timestamp = true)
    private Instant time;

    @Column(name = "vote_type", tag = true)
    private Integer voteType;

    @Column(name = "dynamic_id", tag = true)
    private String dynamicId;

    @Column(name = "voter_uid")
    private String voter;

    @Column(name = "activity_id", tag = true)
    private String activityId;

    @Column(name = "vote_number")
    private Double voteNumber = 1D;

    @Column(name = "vote_sum")
    private Double voteSum;

    @Column(name = "vote_count")
    private Long voteCount;


}
